Skip to content

fix get_random_fact#20

Open
shmoinkle wants to merge 1 commit intolinuxhubit:masterfrom
shmoinkle:api_fix
Open

fix get_random_fact#20
shmoinkle wants to merge 1 commit intolinuxhubit:masterfrom
shmoinkle:api_fix

Conversation

@shmoinkle
Copy link

This fixes #19

I can't speak for how this worked before, but the old method appears to continue getting the same fact.

This API endpoint appears to do the heavy lifting, reducing the need to massage the data a bit
https://catfact.ninja/#/Facts/getRandomFact

Tested locally.

Copy link
Member

@mirkobrombin mirkobrombin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think APIs changed, that limit parameter was just to "take on" of them. Change looks good, now I just have to remember how this thing were (and where) packaged. 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stopped displaying new facts

2 participants